
<script type="text/javascript">
$(document).ready(function() {
    $('.t_a_toggle h2').each(function() {
        $(this).html('<span>' + $(this).html() + '</span>');
        var div = $(this).parent().parent().children('div').eq(1);
        if ($(this).hasClass('t_a_toggle_show')) {
            $(div).hide();
        }
        $(this).click(function() {
            $(div).toggle();
            if ($(div).css('display') == 'block') {
                $(this).addClass('t_a_toggle_hide').removeClass('t_a_toggle_show');
            } else {
                $(this).addClass('t_a_toggle_show').removeClass('t_a_toggle_hide');
            }
        });
    });
});
</script>
<?php $this->headTitle()->prepend('Step2')?>
<div class="grid_12"><?php //echo  $this->flashMessenger(); ?></div>
<div class="install_step">
<div class="t_a_line">
<div></div>
<h2><?php echo  $this->translate('Install Steps')?></h2>
</div>
<ul>
    <li>1. <?php echo  $this->translate('install_steps_requirements'); ?></li>
    <li class="install_step_active">2. <?php echo  $this->translate('install_steps_config'); ?></li>
    <li>3. <?php echo  $this->translate('install_steps_complete'); ?></li>
</ul>
</div>

<div class="install_body">
<!--begin body-->
   <form method="post" action="<?php if ('install' == $this->mode) : ?><?php echo  $this->url(array(), 'install_step2'); ?><?php else : ?><?php echo  $this->APP_URL; ?>/admin/<?php endif; ?>" class="t_a_form">

<!--database connection begin-->
<div class="t_a_bottom">
            <div class="t_a_line t_a_toggle">
                <div></div>
                <h2><?php echo  $this->translate('install_step2_database_conn'); ?></h2>
            </div>
            <div>
                <div class="clearfix t_a_bottom">
                    <div class="grid_2 alpha"><label><?php echo  $this->translate('install_step2_database_host'); ?></label></div>
                    <div class="grid_7 omega">
                        <input type="text" name="host" value="<?php echo  $this->master['host']; ?>" style="width: 300px" />
                        <div class="t_a_guide"><?php echo  $this->translate('install_step2_database_host_guide'); ?></div>
                    </div>
                </div>

                <div class="clearfix t_a_bottom">
                    <div class="grid_2 alpha"><label><?php echo  $this->translate('install_step2_database_username'); ?></label></div>
                    <div class="grid_7 omega">
                        <input type="text" name="username" value="<?php echo  $this->master['user']; ?>" style="width: 300px" />
                        <div class="t_a_guide"><?php echo  $this->translate('install_step2_database_username_guide'); ?></div>
                    </div>
                </div>
            <div class="clearfix t_a_bottom">
                    <div class="grid_2 alpha"><label><?php echo  $this->translate('install_step2_database_password'); ?></label></div>
                    <div class="grid_7 omega">
                        <input type="password" name="password" value="<?php echo  $this->master['pass']; ?>" style="width: 300px" />
                        <div class="t_a_guide"><?php echo  $this->translate('install_step2_database_password_guide'); ?></div>
                    </div>
                </div>

                <div class="clearfix t_a_bottom">
                    <div class="grid_2 alpha"><label><?php echo  $this->translate('install_step2_database_name'); ?></label></div>
                    <div class="grid_7 omega">
                        <input type="text" name="dbname" value="<?php echo  $this->master['dbname']; ?>" style="width: 300px" />
                        <div class="t_a_guide"><?php echo  $this->translate('install_step2_database_name_guide'); ?></div>
                    </div>
                </div>
            </div>
  </div>
    <!-- Web settings -->
 <div class="t_a_bottom">
            <div class="t_a_line t_a_toggle">
                <div></div>
                <h2><?php echo  $this->translate('install_step2_web_settings'); ?></h2>
            </div>
            <div>

            <div class="clearfix t_a_bottom">
                    <div class="grid_2 alpha"><label><?php echo  $this->translate('install_step2_administrator'); ?></label></div>
                    <div class="grid_7 omega">
                        <input type="text" name="admin_user" value="" style="width: 300px" />
                        <div class="t_a_guide"><?php echo  $this->translate('install_step2_administrator_guide'); ?></div>
                    </div>
                </div>

            <div class="clearfix t_a_bottom">
                    <div class="grid_2 alpha"><label><?php echo  $this->translate('install_step2_administrator_password'); ?></label></div>
                    <div class="grid_7 omega">
                        <input type="password" name="admin_password" value="" style="width: 300px" />
                        <div class="t_a_guide"><?php echo  $this->translate('install_step2_administrator_password_guide'); ?></div>
                    </div>
                </div>
            <div class="clearfix t_a_bottom">
                    <div class="grid_2 alpha"><label><?php echo  $this->translate('install_step2_administrator_confirm_password'); ?></label></div>
                    <div class="grid_7 omega">
                        <input type="password" name="confirm_password" value="" style="width: 300px" />
                        <div class="t_a_guide"><?php echo  $this->translate('install_step2_administrator_confirm_password_guide'); ?></div>
                    </div>
                </div>

             <div class="clearfix t_a_bottom">
                    <div class="grid_2 alpha"><label><?php echo  $this->translate('install_step2_administrator_email'); ?></label></div>
                    <div class="grid_7 omega">
                        <input type="text" name="admin_email" value="" style="width: 300px" />
                        <div class="t_a_guide"><?php echo  $this->translate('install_step2_administrator_email_guide'); ?></div>
                    </div>
                </div>

            </div>
  </div>
        <!-- Web settings  end-->


        <div class="t_a_bottom" style="text-align: right">
            <input type="hidden" name="mode" value="<?php echo  $this->mode; ?>" />
            <input class="t_a_button" type="submit" name="submit" value="<?php if ('install' == $this->mode) : ?><?php echo  $this->translate('install_steps_next_button'); ?><?php else : ?><?php echo  $this->translate('install_step2_save_button'); ?><?php endif; ?>" />
        </div>
        </form>
<!--end body-->
</div>
